package studentsystem;

import java.util.Scanner;

public class Main {
    public Main() {
        Scanner sc = new Scanner(System.in);
        int a = 4;    //a不等于0，进入循环
        while (a != 0) {
            System.out.println("----------------欢迎来到学生成绩管理系统----------------");
            System.out.println("0：退出");
            System.out.println("1：录入成绩");
            System.out.println("2：查询成绩");
            System.out.println("3：输出成绩");
            System.out.println("请输入0-3：");
            a = sc.nextInt();
            switch (a) {
                case 0:
                    System.out.println("退出成功！");
                    break;
                case 1:
                    new Input();
                    break;
                case 2:
                    new query();
                    break;
                case 3:
                    new Menu();
                    break;
                default:
                    System.out.println("输入有误！");
                    break;
            }
        }
    }

    public static void main(String[] args) {
        new Main();
    }
}
